package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"ture/api/internal/config"
	"ture/turerpc/turerpcclient"
)

type ServiceContext struct {
	Config  config.Config
	TureRpc turerpcclient.Turerpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		TureRpc: turerpcclient.NewTurerpc(zrpc.MustNewClient(c.TureRpc)),
	}
}
